<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/jquery-3.2.0.js" type="text/javascript" charset="utf-8"></script>

		
	</head>
	<body>
		<ul>
			<li></li>
			<li></li>
			<li></li>
		</ul>
	</body>
</html>
<script type="text/javascript">
	var aaa =[
		{name:'user1',age:'10'},
		{name:'user2',age:'20'},
		{name:'user3',age:'30'},
	]
	$('li').each(function(i){
		$(this).text(i+1 +'----'+ aaa[i].name +'----'+ aaa[i].age)
	
	})
	
	
//	for (i in aaa) {
//		$('li').eq(i).each(function(){
//			$(this).text(aaa[i].name+'----'+aaa[i].age)
//		})
//	}
	
</script>
 
